package com.key.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;
import java.sql.Timestamp;

/*
*
 * @description:
 * @author: jianjiawei
 * @date: 2023/2/20 15:18
 **/
@ApiModel("实物信息变更数据传输对象")
@Data
public class AssetChangeDTO {
    //主键id
    @ApiModelProperty(name = "id",notes = "主键ID",dataType = "Integer",required = true)
    private Integer id;
    //变更单号
    @ApiModelProperty(name = "changeNo",notes = "变更单号",dataType = "String",required = true)
    private String changeNo;
    //业务日期
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "changeDate",notes = "业务日期",dataType = "Date",required = true)
    private String changeDate;
    //处理人
    @ApiModelProperty(name = "changeHandler",notes = "处理人",dataType = "String",required = true)
    private String changeHandler;
    //业务所属公司A
    @ApiModelProperty(name = "changeBelongComp",notes = "业务所属公司",dataType = "String",required = true)
    private String changeBelongComp;
    //资产id列表
    @ApiModelProperty(name = "assetIds",notes = "资产id列表",dataType = "String",required = true)
    private String assetIds;
    //资产类别
    @ApiModelProperty(name = "assetClassNew",notes = "资产类别",dataType = "String",required = true)
    private String assetClassNew;
    //资产型号
    @ApiModelProperty(name = "assetModelNew",notes = "资产型号",dataType = "String",required = true)
    private String assetModelNew;
    //资产名称
    @ApiModelProperty(name = "assetName",notes = "资产名称",dataType = "String",required = true)
    private String assetName;
    //资产区域
    @ApiModelProperty(name = "assetRegionNew",notes = "资产区域",dataType = "String",required = true)
    private String assetRegionNew;
    //购入日期
    @ApiModelProperty(name = "assetBuyDateNew",notes = "购入日期",dataType = "Date",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String assetBuyDateNew;
    //使用期限
    @ApiModelProperty(name = "assetLifeNew",notes = "使用期限",dataType = "int",required = true)
    private Integer assetLifeNew;
    //来源
    @ApiModelProperty(name = "assetSourceNew",notes = "来源",dataType = "String",required = true)
    private String assetSourceNew;
    //供应商
    @ApiModelProperty(name = "assetSupplierNew",notes = "供应商",dataType = "String",required = true)
    private String assetSupplierNew;
    //使用公司
    @ApiModelProperty(name = "assetUserCompNew",notes = "使用公司",dataType = "String",required = true)
    private String assetUserCompNew;
    //使用人
    @ApiModelProperty(name = "assetUserNew",notes = "使用人",dataType = "String",required = true)
    private String assetUserNew;
    //存放地方
    @ApiModelProperty(name = "assetPlace",notes = "存放地方",dataType = "String",required = true)
    private String assetPlace;
    //使用部门
    @ApiModelProperty(name = "assetDept",notes = "使用部门",dataType = "String",required = true)
    private String assetDept;
    //备注
    @ApiModelProperty(name = "remarks",notes = "备注",dataType = "String",required = false)
    private String remarks;

}
